<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			*{
				padding: 0;
				margin: 0;
			}
			img{
				width: 150px;
			}
			.box{
				height: 150px;
				text-align: center;
				padding-top: 50px;
				background-color: rgba(99, 132, 175, 0.3);
			}
			body{
				background-image: url(images/2.jpg);
			}
		</style>
		<script type="text/javascript">
			window.onload = function() {
				var images = document.getElementsByTagName("img");
				for (var i = 0; i < images.length; i++) {
					images[i].onclick = function() {
						var image = this.src;
						document.body.style.backgroundImage= "url(" + image + ")";
					}
				}
			}
		</script>
	</head>
	<body>
		 <div class="box">
		 	<img src="images/1.jpg">
		 	<img src="images/2.jpg">
		 	<img src="images/3.jpg">
		 	<img src="images/4.jpg">
		 	<img src="images/5.jpg">
		 </div>>
	</body>
</html>
